package com.small.common.msg;

/**
 * 返回基本消息
 */
public class Msg {

    // 状态码：1成功，其他为失败
    private int code = 0;

    // 成功为success，其他为失败原因
    private String msg;

    public Msg() {
    }

    public Msg(int code) {
        this.code = code;
    }

    public Msg(String message) {
        this.msg = message;
    }

    public Msg(int code, String message) {
        this.code = code;
        this.msg = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
